﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Redis.Utils
{
    /// <summary>
    /// Redis配置节点
    /// </summary>
    public class RedisNode
    {
        public RedisNode()
        {
            this.Port = 6379;
            this.PassWord = string.Empty;
            this.DefaultDB = 0;
        }

        /// <summary>
        /// 节点名
        /// </summary>
        public string Name { get; set; }

        /// 主机地址
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 验证密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// 默认数据库
        /// </summary>
        public int DefaultDB { get; set; }


    }
}
